<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title></title>
</head>
<body>

</body>
</html>

<script>
	var i = 1000;
	while(i<=2000){
		if(i%100==0){
			if (i%400==0) {
				document.write(i+"<br/>");
			}
		}else{
			if (i%4==0) {
				document.write(i+"<br/>");
			}
		}

		i++;
	}
</script>